package com.xyl.audio.ximalaya;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.xyl.audio.BaseActivity;
import com.xyl.audio.R;

/**
 * 录制首页
 */
public class XmlyRecordActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_xmly_record);
        initTitleBar();
    }

    private void initTitleBar() {
        if (findViewById(R.id.toolbar_title) != null) {
            ((TextView) findViewById(R.id.toolbar_title)).setText("录音");
        }
        if (findViewById(R.id.toolbar_back) != null) {
            findViewById(R.id.toolbar_back).setOnClickListener(new View.OnClickListener() {
                @Override
                public void onClick(View v) {
                    XmlyRecordActivity.this.onBackPressed();
                }
            });
        }
    }
}
